package com.sansan.qiangji.service.impl.device;

import com.sansan.qiangji.entity.device.BeltParamDetail;
import com.sansan.qiangji.mapper.device.BeltParamDetailMapper;
import com.sansan.qiangji.service.inter.device.BeltParamDetailService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BeltParamDetailServiceImpl implements BeltParamDetailService {
    private BeltParamDetailMapper beltParamDetailMapper;

    @Resource
    public void setBeltParamDetailMapper(BeltParamDetailMapper beltParamDetailMapper) {
        this.beltParamDetailMapper = beltParamDetailMapper;
    }

    @Override
    public List<BeltParamDetail> findByBeltName(String beltName) {
        return beltParamDetailMapper.findByBeltName(beltName);
    }

    @Override
    public int insertBeltParamDetails(List<BeltParamDetail> beltParamDetails) {
        return beltParamDetailMapper.insertBeltParamDetails(beltParamDetails);
    }

    @Override
    public int deleteBeltParamDetails(List<BeltParamDetail> beltParamDetails) {
        return beltParamDetailMapper.deleteBeltParamDetails(beltParamDetails);
    }

    @Override
    public int updateBeltParamDetails(List<BeltParamDetail> beltParamDetails) {
        return beltParamDetailMapper.updateBeltParamDetails(beltParamDetails);
    }

    @Override
    public int updateBeltParamNotChangeValueDetails(List<BeltParamDetail> beltParamDetails) {
        return beltParamDetailMapper.updateBeltParamNotChangeValueDetails(beltParamDetails);
    }

    @Override
    public int updateBeltParamDetailsChangeValue(List<BeltParamDetail> beltParamDetails) {
        return beltParamDetailMapper.updateBeltParamDetailsChangeValue(beltParamDetails);
    }

    @Override
    public int updateBeltParamDetail(BeltParamDetail beltParamDetail) {
        return beltParamDetailMapper.updateBeltParamDetail(beltParamDetail);
    }
}
